<!DOCTYPE html>
<html>
<head>
<title>{$exam.exam_name} {$site_name}</title>
<tc_include file="Public:head" />
<link href="/themes/simplebootx/Public/assets/css/base.css"	rel="stylesheet">
<link href="/themes/simplebootx/Public/assets/css/p_dis.css" rel="stylesheet">
<link href="/themes/simplebootx/Public/assets/css/exam.css" rel="stylesheet">
<link href="/themes/simplebootx/Public/assets/css/moni-into.css" rel="stylesheet">
<style type="text/css">
.exam-info-box {
	background-color: #fff;
	padding: 0;
}

.exam-info-box {
	background-color: #FFF;
	border: #e0e0e0 solid 1px;
	border-top: #f04800 solid 3px;
	box-shadow: 1px 2px 3px #ddd;
}

.exam-info-box dl {
	padding: 0;
	margin: 0;
}

.exam-info-box dt, .exam-info-box dd {
	line-height: 30px;
	padding-left: 20px;
}

.exam-info-box dt {
	padding-left: 32px;
	line-height: 50px;
	color: #000;
	font-size: 16px;
	font-weight: bold
}

}
.dopra-con {
	margin: 0;
	padding: 0;
}

</style>
</head>
<body class="boxed">
	<div class="body">
			<!-- 通用头部 -->
			<div id="top"><tc_include file="Public:front_nav" /></div>
			<div class="shade-bg">
				<img src="__TMPL__Public/front/img/sha.png" class="slidershadow" alt="">
			</div>
	<div class="container">
		<div class="row">
			<div class="pracontent clearfix">
				<div class="s-adress">
					<i></i><a href="{:U('paper/exam_list')}">在线考试</a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;<a
						href="{:U('paper/exam_list',array('exam_term_id'=>$exam['exam_term']))}">{$exam_terms[$exam['exam_term']]}</a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;<a
						href="#">{$exam.exam_name}</a>
				</div>
				<div class="m-examHead bor clearfix ">
					<!--试卷头信息-->
					<h2 class="h2">《{$exam.exam_name}》 考试结束</h2>
					<if condition="$exam['exam_result_show'] eq 0">					
					<div class="clear clearfix" style="font-size:30px; line-height:40px; text-align:center; padding:50px">考试交卷完成，考试成绩将于近期在本网站进行公示，请注意关注网站最新动态！</div>
					<else/>
					<div class="exam-info-report clearfix">
						<div class="report-l clearfix">
							<h3>试卷得分</h3>
							<div class="report-lcon clearfix">
								<div class="re-num">
									<em>{$user_score}</em>分
								</div>
								<ul>
								<li class="jks"><font><i></i>及格分数</font> <span><em>{$paper['paper_pass_score']}分</em></span></li>
									<li class="pjf"><font><i></i>全站平均分</font><span><em>{$avg_score}</em>分</span></li>
									<li class="pm"><font><i></i>排名</font> <span><em>{$user_order}</em>名</span></li>									
									<li class="dtsj"><font><i></i>答题时间</font> <span><em>{$user_use_minutes}</em>/{$exam.exam_duration}分钟</span></li>
									<li class="dtl"><font><i></i>答题量</font> <span><em>{$user_answer_count}</em>/{$paper_ques_count}道</span></li>
								</ul>
							</div>
						</div>
					</div>
					<div class="rep-btn clear clearfix">
						<a href="{:U('paper/exam',array('id'=>$exam['id'],'conanswer'=>$exam_user_record_id))}" class="jie-btn"><i></i>查看答案解析</a>
					</div>
								
					<div class="info-two clear clearfix">
					<php>if(!empty($paper)){</php>
					<lt name="user_score" value="$paper['paper_pass_score']">
					您的分数偏低，未达到及格线标准{$paper['paper_pass_score']}分，属于基础薄弱的，建议选择以下课程来提升自己的能力。
					<else/>
					恭喜，您的分数已达到及格标准，请继续保持，再接再厉！
					</lt>
					<php>}</php>
					</div>
					</if>		
				</div>
				<if condition="1 lt 1">
				<div class="exam-info-dati bor f-mt20">
					<div class="ex-tit">
						<h3>答题情况</h3>
					</div>
					<div class="dati-con">
						<table width="100%" border="0" cellspacing="0" class="tui-table">
							<thead>
								<tr>
									<th></th>
									<th>做对试题</th>
									<th>做错试题</th>
									<th>未做试题</th>
									<th>已做/总题量</th>
									<th>正确率</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>选择题</td>
									<td class="green">2</td>
									<td class="red">8</td>
									<td>10</td>
									<td>10/20</td>
									<td class="green">20%</td>
								</tr>
								<tr>
									<td>基本操作题</td>
									<td class="green">0</td>
									<td class="red">0</td>
									<td>5</td>
									<td>0/5</td>
									<td class="green">0%</td>
								</tr>
								<tr>
									<td>字处理题</td>
									<td class="green">0</td>
									<td class="red">0</td>
									<td>1</td>
									<td>0/1</td>
									<td class="green">0%</td>
								</tr>
								<tr>
									<td>电子表格题</td>
									<td class="green">0</td>
									<td class="red">0</td>
									<td>2</td>
									<td>0/2</td>
									<td class="green">0%</td>
								</tr>
								<tr>
									<td>演示文稿题</td>
									<td class="green">0</td>
									<td class="red">0</td>
									<td>1</td>
									<td>0/1</td>
									<td class="green">0%</td>
								</tr>
								<tr>
									<td>上网题</td>
									<td class="green">0</td>
									<td class="red">0</td>
									<td>1</td>
									<td>0/1</td>
									<td class="green">0%</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				</if>
			</div>
		</div>

		<tc_include file="Public:footer" />
	</div>
</div>
	<!-- JavaScript -->
	<tc_include file="Public:scripts" />
	<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
	<script type="text/javascript">
		function showcalcu() {
			layer.open({
				type : 2,
				title : '计算器',
				shadeClose : true,
				shade : false,
				maxmin : true, //开启最大化最小化按钮
				area : [ '692px', '426px' ],
				content : "{:U('paper/calcu')}",
				success : function(layero, index) {
				}
			});
		}
		/*添加页面侦听事件*/
        $(function(){
              $('body')
               //删除评论列表
               //监听评论输入框字数
              .on('keyup','#commentText',function(){
                  var count=$(this).val().length;
                  if(count>500){
                      $('#limitedText').css('color','red');
                      $('#limitedText').addClass('over');
                  }else{
                      $('#limitedText').css('color','');
                      $('#limitedText').removeClass('over');
                  }
              })
              //发表评论
              .on('click','#commentSubmit',function(){
                  var data={
                      Content:$('#commentText').val(),
                      GroupId:paperId
                  };
                  if($('#commentText').val().length<=0){
                      dialog.tips('发表内容不能为空!')
                  }else if( $('#limitedText').hasClass('over')){
                      dialog.tips('字数超过限制!')
                  }else{
                      //避免重复发送
                      if(!$('#commentText').hasClass('post')){
                          //发表评论内容
                          send({
                              url:baseAjaxPath+'exam/addReview',
                              data:data,
                              success:function(data){
                                  if(data.s===10006){
                                      dialog.success('添加成功!');
                                      $('#commentText').addClass('post');
                                      setTimeout(function(){
                                          $('#commentText').val('');
                                          $('.ex-tit em').html(parseInt($('.ex-tit em').html())+1);
                                          $('.reviewedCount').html(parseInt($('.reviewedCount').html())+1);
                                          getCommentList({pageIndex:1})
                                          $('#commentText').removeClass('post');
                                      },1000);
                                  }
                                      //未登录先登录
                                  else if(data.s===10001&&data.msg=='未登录或已掉线'){
                                      login({
                                          initTab: 0, //0:登录界面,1注册界面,默认值为0,
                                          onSuccess: function () { //登陆成功
                                              window.location.reload();
                                          }
                                      });
                                  }
                                  else{
                                      dialog.fail(data.msg);
                                      $('#commentText').removeClass('post');
                                  }
                              },
                              error:function(data){
                                  dialog.fail(data.msg);
                                  $('#commentText').removeClass('post');
                              }
                          })
                      }
                  }
              })
              //星星点击事件
              .on('mouseover','.onStar',function(){
                  if(!$('.szhi').hasClass('send')){
                      $('.szhi').attr('data-star','0');
                      $('.onStar').css('background','url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -31px');
                      $(this).css('background','#fff url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -49px');
                      $(this).prevAll().css('background','#fff url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -49px');
                      $('.onStar').bind('mouseout',function(){
                          $('.onStar').css('background','url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -31px');
                      })
                  }
              })
              .on('click','.onStar',function(){
                  if(!$('.szhi').hasClass('send')){
                      $(this).css('background','#fff url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -49px');
                      $(this).prevAll().css('background','#fff url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -49px');
                      $(this).nextAll().css('background','url(//img2.233.com/wx/uc/v2016/tiku/skin/images/star_icon.png) no-repeat 0 -31px');
                      $('.onStar').unbind('mouseout');
                      $('.szhi').attr('data-star',$(this).index()+1);
                      //发表试卷评分
                      if($('.szhi').attr('data-star')!=0){
                          var starData={
                              paperId:paperId,
                              paperLevel:$('.szhi').attr('data-star')
                          };
                          send({
                              url:baseAjaxPath+'paper/addLevel',
                              data:starData,
                              success:function(data){
                                  if(data.s===10006){
                                      $('.szhi').addClass('send');
                                  }
                              }
                          })
                      }
                  }
              });
        })

	</script>
</body>
</html>